package team.seekers.hula.question.point.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import team.seekers.hula.question.answer.entity.dto.AnswerAddDTO;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PointAddDTO {

    @NotBlank(message = "观点关键词不能为空")
    private String keyword;

    @NotNull(message = "请做出一个回答")
    private AnswerAddDTO answerAddDTO;

    private String questionId;

}
